[Top] [Prev] [Next] [Bottom]
[Contents]
SaTableHeadExt
Prints an HTML table header fragment to an HTML stream. The HTML table element is not supported by all client browsers.
#include "SaRnHtml.h"
int SaTableHeadExt(char* evalue, int rows,
int cols, int align, int nowrap);
Arguments
evalue
- A string specifying the HTML table header. This string is converted to an HTML-compatible string. If evalue is NULL, an empty string is used.
rows
- An integer specifying the number of rows an HTML table element header spans. If rows is greater than zero, the HTML fragment:
ROWSPAN="rows"
- is added to the HTML stream. Otherwise the fragment is suppressed.
cols
- An integer specifying the number of columns an HTML table element header spans. If cols is greater than zero, the HTML fragment:
COLSPAN="cols"
- is added to the HTML stream. Otherwise the fragment is suppressed.
align
- An integer specifying which alignment fragment to use. Valid define constants and their associated HTML fragments are:
SA_NOALIGN
SA_TOP ALIGN="TOP"
SA_MIDDLE ALIGN="MIDDLE"
SA_BOTTOM ALIGN="BOTTOM"
SA_LEFT ALIGN="LEFT"
SA_CENTER ALIGN="CENTER"
SA_RIGHT ALIGN="RIGHT"
nowrap
- An integer flag specifying whether to disable line wrapping. A non-zero value adds the HTML fragment:
NOWRAP
- to the HTML stream. Otherwise, the fragment is suppressed.
Return Values
Returns an integer with a value of 0.
Prints an HTML table header fragment to an HTML stream. The HTML table element is not supported by all client browsers.
The code fragment:
SaTableHeadExt("Description", 2, 2, SA_CENTER);
will write:
<TH NOWRAP ROWSPAN="2" COLSPAN="2"
ALIGN="CENTER",>Description</TH>
to the output stream
[Top] [Prev] [Next] [Bottom]
[Contents]
info@bluestone.com
Copyright © 1997, Bluestone. All rights
reserved.